import { BaseEntity } from '@cool-midway/core';
import { Entity, Column} from 'typeorm';

/**
 * broadcast模块-播放记录
 */
@Entity('broadcast_play_record')
export class BroadcastPlayRecordEntity extends BaseEntity {

  @Column({ comment: '用户ID'})
  userId: number;

  @Column({ comment: '配方ID', nullable: true})
  recipeId: string;

  @Column({ comment: '背景音频ID', nullable: true})
  audioId: number;

  @Column({ comment: '象数' })
  elephantNumber: string;
  
  @Column({ comment: '象数名称', nullable: true })
  name: string;

  @Column({ comment: '播放次数',default:1 })
  count: number;

  recipeInfo:{}
}
